package com.shxzz.easy12306.framework.starter.web.config;

import com.shxzz.easy12306.framework.starter.web.GlobalExceptionHandler;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

/**
 * Web 组件自动装配
 * @author shxzz
 * @create 2024-01-27-21:59
 */
public class WebAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean
    public GlobalExceptionHandler globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }
}
